<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />

<link rel="stylesheet" href="css/i2msk.css">
<style type="text/css">

.box-shadow {
    box-shadow: 0 1px 5px #b3b3b3;
}
.border {
    border-top: 0.1rem solid #efefef;
    border-bottom: 0.1rem solid #efefef;
}
.t-c {
    text-align: center;
}
html,
body,
ul,
li,
dl,
dt,
dd,
p,
input,
textarea,
h2 {
    margin: 0;
    padding: 0;
    font-family: "Helvetica", "黑体";
    list-style: none;
}
html {
    height: 100%;
}
body {
    font-size: 1.2rem;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
img {
    border: none;
    vertical-align: top;
}
a {
    text-decoration: none;
}
input {
    font-size: 1.2rem;
    border: 0;
    -webkit-appearance: none;
    display: block;
}
:focus {
    outline: 0;
}
.clear {
    clear: both;
}
.clearfix:after {
    content: "\0020";
    height: 0;
    display: block;
    visibility: hidden;
    clear: both;
}
body {
    background-color: #f3f4f6;
}
header h1 {
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    color: #666666;
    position: relative;
    height: 4rem;
    line-height: 4rem;
    box-shadow: 0 1px 5px #b3b3b3;
}
header a {
    position: absolute;
    left: 1rem;
    top: 1rem;
    display: block;
    height: 2rem;
    width: 2rem;
    background-size: 70%;
}
.user {
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 0 auto;
    padding-top: 3rem;
}
section p {
    font-size: 1.5rem;
    color: #666666;
    text-align: center;
    padding: 1rem 0;
}
section div {
    height: 5rem;
    line-height: 5rem;
    background-color: #fff;
    text-align: center;
    border-top: 0.1rem solid #efefef;
    border-bottom: 0.1rem solid #efefef;
}
section div img {
    display: inline-block;
    width: 1.5rem;
    height: 1.7rem;
    margin-top: 1.5rem;
}
section div div {
    display: inline-block;
    height: 2.5rem;
    line-height: 2.5rem;
    background-color: #f3f4f6;
    border-radius: 0.3rem;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    text-indent: 0.5rem;
    color: #666666;
}
section input {
    display: block;
    height: 3rem;
    line-height: 3rem;
    width: 60%;
    background-color: #ff9c00;
    margin: 0 auto;
    border-radius: 0.5rem;
    margin-top: 2rem;
    box-shadow: 0 1px 5px #b3b3b3;
    text-align: center;
    font-size: 1.6rem;
    color: #fff;
}
.sec1 div {
    height: 10rem;
    text-align: left;
}
.sec1 div img {
    width: 2.5rem;
    height: 2.5rem;
    float: left;
    margin-left: 10%;
}
.sec1 div p {
    width: 72%;
    float: left;
    margin-left: 1.5rem;
    padding: 0;
}
.sec1 div p a {
    border: none;
    background-color: #fff;
    box-shadow: 0 0 0 #fff;
    color: #666666;
    text-align: left;
    height: 2rem;
    line-height: 2rem;
    width: 100%;
    font-size: 1.8rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.1rem solid #efefef;
    border-radius: 0;
    position: relative;
}
.sec1 div p a span {
    display: block;
    width: 1.5rem;
    height: 2rem;
    position: absolute;
    right: 0;
    background-size: 100% 100%;
    top: 0rem;
}
.sec1 div {
    height: 11.7rem;
    border-color: #dfdfdf;
}
.sec1 div div {
    height: 7rem;
    width: 90%;
    margin: 0 auto;
    border-top: none;
}
.sec1 div .p1 {
    width: 90%;
}
.sec1 div .p1 a {
    border: none;
    font-size: 1.5rem;
}
.sec2 div {
    border: none;
}
.sec2 div input {
    width: 70%;
}
.sec2 a {
    margin-top: 0;
}
.img1 {
    width: 5rem;
    height: 5rem;
}
h2 {
    text-align: center;
    padding-top: 1rem;
    color: #666666;
    font-weight: 500;
    font-size: 1.8rem;
}
</style>
<script type="text/javascript" src="js/jquery-3.0.0.js"></script>
<script type="text/javascript" src="js/i2msk-sm2.js"></script>
<!-- <script type="text/javascript" src="js/jsencrypt.js"></script> -->
<script type="text/javascript" src="js/i2msk.js"></script>
<script type="text/javascript">
	$(function(){
			create();
			
		});
		var mks;
		function create(){
			if(mks != undefined){
				mks.clear();
			}else{
				
			}
			mks = $.getMSK("SecurityKeyboardServlet", "Number", "1", "RSA");
		    pwd = mks.init({
	            elementId: "password",
	            placeholder: "请输入密码",
	            length: 12,
	        });
	        pwd2 = mks.init({
	            elementId: "password2",
	            placeholder: "请再次输入密码",
	            length: 12,
	        });
		}
		function equals(){
			pwd.length();
			alert(pwd.equals(pwd2));
		}
			
</script>
<title>登录</title>
</head>

<body>
    <script type="text/javascript" src="js/WapRoot.js" ></script>
    <header>
       
       <h1 ><a href=""></a>登录</h1> 
	   <input type="text" id="text" style="" name="text" placeholder="test" >
    </header>


    <section>
    	<form action="set.jsp" >
	    	 <img onclick="create()" src="images/user.png" alt="" class="user">
	        <p>189****8321</p>
	        <div>
	            <img src="images/suo.png" alt="">
	            <div>
	            	<input type="password" id="password" name="password" placeholder="请输入密码" >
	            	<input type="password" id="password2" name="password2" placeholder="请再次输入密码" >
	            </div>
	        </div>
	        <input type="submit" value="确认登录111"/>
	        <input type="button" value="刷新键盘" onclick="create()"/>
	        <input type="button" value="密码比较" onclick="equals()"/>
    	</form>
       
    </section>
    
    </body>
</html>